/*    */ package com.zimbra.cs.datasource;
/*    */ 
/*    */ import com.zimbra.common.localconfig.KnownKey;
/*    */ import com.zimbra.common.localconfig.LC;
/*    */ import com.zimbra.common.service.ServiceException;
/*    */ import com.zimbra.common.util.Log;
/*    */ import com.zimbra.common.util.ZimbraLog;
/*    */ import com.zimbra.cs.extension.ExtensionUtil;
/*    */ import com.zimbra.cs.mailbox.Mailbox;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class IOExceptionHandler
/*    */ {
/*    */   private static IOExceptionHandler instance;
/*    */   
/*    */   public static synchronized IOExceptionHandler getInstance()
/*    */   {
/* 35 */     if (instance == null) {
/* 36 */       String className = LC.data_source_ioexception_handler_class.value();
/* 37 */       if ((className != null) && (!className.equals(""))) {
/*    */         try {
/*    */           try {
/* 40 */             instance = (IOExceptionHandler)Class.forName(className).newInstance();
/*    */           }
/*    */           catch (ClassNotFoundException cnfe) {
/* 43 */             instance = (IOExceptionHandler)ExtensionUtil.findClass(className).newInstance();
/*    */           }
/*    */         } catch (Exception e) {
/* 46 */           ZimbraLog.account.error("could not instantiate IOExceptionHandler child class '" + className + "'; defaulting to IOExceptionHandler", e);
/*    */         }
/*    */       }
/* 49 */       if (instance == null)
/* 50 */         instance = new IOExceptionHandler();
/*    */     }
/* 52 */     return instance;
/*    */   }
/*    */   
/*    */   public boolean isRecoverable(Mailbox mbox, long itemId, String message, Exception exception) throws ServiceException {
/* 56 */     return false;
/*    */   }
/*    */   
/*    */   public void trackSyncItem(Mailbox mbox, long itemId) {}
/*    */   
/*    */   public void checkpointIOExceptionRate(Mailbox mbox)
/*    */     throws ServiceException
/*    */   {}
/*    */   
/*    */   public void resetSyncCounter(Mailbox mbox) {}
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/datasource/IOExceptionHandler.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */